import gym
env = gym.make('LunarLander-v2')
print('initial state', env.reset())
t = 0
while True:
    act = env.action_space.sample()
    u = env.step(act)
    env.render()
    t += 1
